<?php
namespace Mp\Service\Widget;
use Illuminate\Support\Fluent;

abstract class  Widget extends Fluent{

	protected $view;

	abstract public function render();

	abstract public function data();

	protected function view($view){
		$this->view = $view;
	}

	public function __toString(){
		return $this->render();
	}
}